import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('SidePrefab')
export class SidePrefab extends Component {
   

    onclickCloseBtn(){
        this.node.destroy();
    }

    onclickGoSide(){
        let tt=window['tt'];
        tt.navigateToScene(
            {
                scene:"sidebar",
                success:(res)=>{
                    console.log("跳转成功");
                },
                fail:(res)=>{
                    console.log("跳转失败");

                }

            }
        )
    }


}


